package com.martin.fastframe.ui.danmu

import android.view.View
import android.widget.TextView
import com.martin.fastframe.R

class MessageDanMuItem(
    private val name: String,
    private val message: String
) : BaseDanMuItem() {

    override fun getItemLayoutId() = R.layout.item_danmu

    override fun onBindData(view: View) {
        //设置弹幕文本信息
        view.findViewById<TextView>(R.id.tv_name).text = name
        view.findViewById<TextView>(R.id.tv_message).text = message
    }
}